package com.ruoyi.user.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.base.BaseEntity;

/**
 * 手机短信验证码表 usr_verify_code
 * 
 * @author ruoyi
 * @date 2018-12-14
 */
public class VerifyCode extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long id;
	/** 事项（1:注册2：找回密码） */
	private Integer type;
	/** 用户id */
	private Long userId;
	/** 手机号码 */
	private String telephone;
	/** 验证码 */
	private String code;
	/** 发送时间 */
	private Date sendTime;
	/** 至有效时间 */
	private Date validTime;
	/** 状态(0 待验证；1 验证通过；2 验证失败) */
	private Integer status;
	/** 创建人Id */
	private Long createdBy;
	/** 创建人名称 */
	private String createdByName;
	/** 创建时间 */
	private Date createTime;
	/** 最后修改人id */
	private Long updatedBy;
	/** 最后修改人名称 */
	private String updatedByName;
	/** 最后修改时间 */
	private Date updateTime;
	/** 是否删除0否1是 */
	private Integer enabled;
	/** 版本号 */
	private Long version;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setType(Integer type) 
	{
		this.type = type;
	}

	public Integer getType() 
	{
		return type;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setTelephone(String telephone) 
	{
		this.telephone = telephone;
	}

	public String getTelephone() 
	{
		return telephone;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setSendTime(Date sendTime) 
	{
		this.sendTime = sendTime;
	}

	public Date getSendTime() 
	{
		return sendTime;
	}
	public void setValidTime(Date validTime) 
	{
		this.validTime = validTime;
	}

	public Date getValidTime() 
	{
		return validTime;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setCreatedBy(Long createdBy) 
	{
		this.createdBy = createdBy;
	}

	public Long getCreatedBy() 
	{
		return createdBy;
	}
	public void setCreatedByName(String createdByName) 
	{
		this.createdByName = createdByName;
	}

	public String getCreatedByName() 
	{
		return createdByName;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdatedBy(Long updatedBy) 
	{
		this.updatedBy = updatedBy;
	}

	public Long getUpdatedBy() 
	{
		return updatedBy;
	}
	public void setUpdatedByName(String updatedByName) 
	{
		this.updatedByName = updatedByName;
	}

	public String getUpdatedByName() 
	{
		return updatedByName;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setEnabled(Integer enabled) 
	{
		this.enabled = enabled;
	}

	public Integer getEnabled() 
	{
		return enabled;
	}
	public void setVersion(Long version) 
	{
		this.version = version;
	}

	public Long getVersion() 
	{
		return version;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("userId", getUserId())
            .append("telephone", getTelephone())
            .append("code", getCode())
            .append("sendTime", getSendTime())
            .append("validTime", getValidTime())
            .append("status", getStatus())
            .append("createdBy", getCreatedBy())
            .append("createdByName", getCreatedByName())
            .append("createTime", getCreateTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedByName", getUpdatedByName())
            .append("updateTime", getUpdateTime())
            .append("enabled", getEnabled())
            .append("version", getVersion())
            .toString();
    }
}
